package com.changzhi.common.enums;


/**
 * 邀请奖品枚举
 * 
 *
 */
public enum InvitePrizeEnum {

	EX_PRIZE(1,0, "兑换奖品"),
	ACCUMULATE_AWARD(1,1, "累计奖励"),
	INVITE_NEW_AWARD(1,2, "邀请活动新人奖励"),
	EXTERNAL_NEW_AWARD(1,3, "奶爸邀请新人奖励"),

	;

	private Integer inviteId;
	private Integer type;
	private String desc;

	InvitePrizeEnum(Integer inviteId, Integer type, String desc) {
		this.inviteId = inviteId;
		this.type = type;
		this.desc = desc;
	}

	public Integer getInviteId() {
		return inviteId;
	}

	public Integer getType() {
		return type;
	}

	public String getDesc() {
		return desc;
	}


	public static String getTypeStr(Integer activityId, Integer type) {
		for (InvitePrizeEnum anEnum : InvitePrizeEnum.values()) {
			if(anEnum.inviteId.equals(activityId) && anEnum.type.equals(type)){
				return anEnum.desc;
			}
		}
		return null;
	}
}

